<template>
	<view>
		<view class="hicon">
			<text class="cuIcon-roundcheckfill"></text>
		</view>
		<view class="su-info">
			<view class="title">支付成功</view>
			<view class="price text-price text-red">{{price}}元</view>
		</view>
		<view class="su-btn">
			<button class="cu-btn round line-orange" @click="goorder">查看订单</button>
			<button class="cu-btn round bg-orange" @click="goindex">返回首页</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				price:0
			}
		},
		onLoad(option) {
			this.price=option.price;
		},
		methods: {
			goorder(){
				uni.switchTab({
					url: '/pages/user/index'
				});
			},
			goindex(){
				uni.switchTab({
					url: '/pages/index/index'
				});
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #ffffff;
	}
	.hicon{
		text-align: center;
		padding: 80rpx 0 0 0;
		.cuIcon-roundcheckfill{
			font-size: 100px;
			color: #4ed3ff;
		}
	}
	.su-info{
		margin-top: 20rpx;
		text-align: center;
		font-size: 16px;
		.price{
			margin-top: 35rpx;
			font-size: 30rpx;
		}
	}
	.su-btn{
		margin-top: 80rpx;
		text-align: center;
		.cu-btn{
			padding: 10rpx 60rpx;
			margin:0 30rpx;
		}
	}
</style>
